// export const name = 'zhangsna'
// export const age = 20
// export function hello() {
//   return 'hello world'
// }

const name = 'zhangsan'
const age = '20'
function hello() {
  return 'hello world'
}
export {
  name, age, hello
}

// default：默认值，在一个js文件中只能使用一次
const obj = {
  name: 'lisi',
  age: 25
}
export default obj

class Person {
  constructor(name, age) {
    this.name = name
    this.age = age
  }
  sayName() {
    return this.name
  }
  sayAge() {
    return this.age
  }
}
export {Person}